import request from '@/utils/request';

// 配方管理列表
export const formulaList = params => request({
    url: '/business/formula/selectList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方管理新增
export const formulaAdd = params => request({
    url: '/business/formula/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方管理更新
export const registerUpdate = params => request({
    url: '/business/formula/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方管理删除
export const registerDel = params => request({
    url: '/business/formula/delete',
    method: 'GET',
    params
});
// 配方管理详情
export const registerDetail = params => request({
    url: '/business/formula/getDetail',
    method: 'GET',
    params
});
// 配方管理状态更新
export const updateStatus = params => request({
    url: '/business/formula/updateStatus',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方管理导出
export const businesExport = params => request({
    url: '/business/formula/export',
    responseType: 'blob',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方管理下拉
export const businessAllList = params => request({
    url: '/business/formula/allList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方历史分页查询
export const selectHistoryList = params => request({
    url: '/business/formula/selectHistoryList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 配方管理详情带价格
export const getDetailPrice = data => request({
    url: '/business/formula/getDetailPrice',
    method: 'POST',
    data
}).then(res => {
    return res;
});
// 配方管理详情带价格
export const selectPrice = data => request({
    url: '/business/formula/selectPrice',
    method: 'POST',
    data
}).then(res => {
    return res;
});

// 医生维度选项查询
export const dimensionQuery = data => request({
    url: '/business/report/dimension/dimensionQuery',
    method: 'POST',
    data
}).then(res => {
    return res;
});

// 科室、疾病、医生维度修改
export const dimensionAddAndDelect = data => request({
    url: '/business/report/dimension/dimensionAddAndDelect',
    method: 'POST',
    data
}).then(res => {
    return res;
});

